#include <iostream>
#include <map>
#include <list>
#include <ctime>
#include "Object.h"

int main(int argc, char* argv[])
{
    CDirectory* lpRoot = new CDirectory("C:");
    CDirectory* lpDirectory = new CDirectory("Program Files");
    CDirectory* lpDirectory2 = new CDirectory("Windows");

    CFile* lpFile = new CFile("a.txt");
    CFile* lpFile2 = new CFile("1.c");

    lpRoot->add(lpDirectory);
    lpRoot->add(lpFile);
    lpDirectory->add(lpFile2);
    lpDirectory->add(lpDirectory2);
    ShowTree(lpRoot, 0);

    return 0;
}